import {loginreq, req} from '../util/ReqUtil'
import * as $Constants from './Constants'


// 用户登录
export const login  = (params) => { return loginreq("post",$Constants.host+"/api/user/login",params).then(res => res) };
// 查询好友信息
export const queryFriendsInfo = (params) => { return req('post',$Constants.host+'/api/user/queryFriendsInfo',params).then(res => res)}
// 搜索好友信息
export const searchFriends = (params) => { return req('post',$Constants.host+'/api/user/searchFriends',params).then(res => res)}

// 搜索好友信息
export const queryNoReadMessage = (params) => { return req('post',$Constants.host+'/api/message/queryNoReadMessage',params).then(res => res)}
